package com.nhy.bloggers.mapper;

import com.nhy.bloggers.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select id, user_name, password, github_url, delete_flag, create_time " +
            "from user where id = #{id}")
    User selectById(Integer id);
    @Select("select id, user_name, password, github_url, delete_flag, create_time " +
            "from user where user_name = #{userName}")
    User selectByName(String name);
}
